<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>v-model指令</title>
  <script src="../vue.js"></script>
</head>

<body>
  <!-- 
    作用:给表单使用,双向数据绑定,快速获取或设置表单内容
   -->
  <div id="app">
    <input type="text" name="" id="" placeholder="请输入用户名" v-model="uesename"> <br>
    <input v-model="password" type="password" name="" id="" placeholder="请输入密码"><br>
    <input type="submit" name="" id="">
    <input type="reset" name="" id="">
  </div>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        uesename: '',
        password: ''
      }
    })
  </script>
</body>

</html>